.el-dialog.custom-dialog {
  @include themify() {
    background-color: themed("dialogBg");
  }

  .el-dialog__header {
    line-height: 50px;
    height: 50px;
    position: relative;
    padding: 0 15px;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 2px;
    @include themify() {
      color: themed("dialogHeaderColor");
      background-color: themed("dialogHeaderBg");
      border-bottom: 1px solid themed("dialogBorderColor");
    }

    .el-dialog__title {
      color: inherit;
      font-size: 14px;
    }

    .el-dialog__headerbtn {
      color: inherit;
      top: 13px;
      right: 15px;
      font-size: 20px;

      .el-dialog__close {
        color: inherit;
      }
    }
  }

  .el-dialog__body {
    padding: 0;
    color: inherit;
    font-size: 12px;
    @include themify() {
      color: themed("dialogBodyColor");
    }

    .g-dialog-container {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .g-dialog-content {
      flex-grow: 1;
      padding: 10px;
    }

    .g-dialog-footer {
      flex-shrink: 0;
      height: 50px;
      text-align: right;
      @include themify() {
        border-top: 1px solid themed("dialogBorderColor");
      }
      padding: 10px;
    }

    .page-block {
      padding-top: 10px;
      padding-bottom: 0;
    }
  }
}

.el-popover {
  border: none !important;
  padding: 0;
  @include themify() {
    background: themed('menuHover') !important;
  }
  padding: 0 10px 10px;
}

.popover-class {
  .popper__arrow {
    @include themify() {
      border-left-color: themed('menuHover') !important;
    }

    &::after {
      @include themify() {
        border-left-color: themed('menuHover') !important;
      }
    }
  }
}
